package com.fh.shop.api.book.param;

import com.fh.shop.api.common.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel
public class BookQueryParam extends Page implements Serializable {
    @ApiModelProperty("图书名")
    private String bookName;
    @ApiModelProperty("图书作者")
    private String author;
    @DateTimeFormat(pattern = "yyyy-MM-dd") // 前台向后台传参
    @ApiModelProperty("开始时间")
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd") // 前台向后台传参
    @ApiModelProperty("结束时间")
    private Date endDate;
    @ApiModelProperty(value = "开始价格", example = "0")
    private BigDecimal startPrice;
    @ApiModelProperty(value = "结束价格", example = "0")
    private BigDecimal endPrice;

}
